package com.example.iotmanagerment26.domain.vo;

import com.example.iotmanagerment26.domain.Oprecord;
import com.example.iotmanagerment26.domain.User;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserOprecordVO extends User {
    private List<Oprecord> ops;

    public UserOprecordVO() {
    }

    public UserOprecordVO(int id, String username, String password, String power, String cardId, List<Oprecord> ops) {
        super(id, username, password, power, cardId);
        this.ops = ops;
    }

    public List<Oprecord> getOps() {
        return ops;
    }

    public void setOps(List<Oprecord> ops) {
        this.ops = ops;
    }
}
